package com.sjzl.entity;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 留言通知
 * @author 黄健
 *
 */
@Entity
@Table(name="tb_notification")
public class Notification extends BaseEntity{
	
	private User user;
	private String content;
	/**
	 * 是否为新，标记已读,1为未读，0为已读
	 */
	private Integer isNew;
	private String userCreated;
	
	@ManyToOne(cascade = CascadeType.REMOVE)
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Integer getIsNew() {
		return isNew;
	}
	public void setIsNew(Integer isNew) {
		this.isNew = isNew;
	}
	public String getUserCreated() {
		return userCreated;
	}
	public void setUserCreated(String userCreated) {
		this.userCreated = userCreated;
	}
}
